package com.adou.common.model;

import java.util.Date;

import com.adou.common.dto.DefFormDto;
import com.adou.common.model.base.BaseEntity;
import org.apache.ibatis.type.Alias;

@Alias("DefForm")
public class DefForm extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	
    private Long id;

    private String cformname;

    private String cformdisplay;

    private String cformtype;

    private Integer iver;

    private String ccreator;

    private Date ddate;

    private Integer icrttype;

    private Integer ifieldnum;

    private Boolean bflag;
    
    private String keyWord;
    
    private String coriginalhtml;

    private String cparsehtml;

    public DefForm(){

    }
    public DefForm(DefFormDto defFormDto){
        this.setId(defFormDto.getId());
        this.setKeyWord(defFormDto.getKeyWord());
        this.setCoriginalhtml(defFormDto.getOriginalhtml());
        this.setCparsehtml(defFormDto.getParsehtml());
        this.setIfieldnum(defFormDto.getFieldnum());
        this.setIver(defFormDto.getVer());
        this.setCformdisplay(defFormDto.getFormdisplay());
        this.setCformname(defFormDto.getFormname());
        this.setCformtype(defFormDto.getFormtype());
        this.setIcrttype(defFormDto.getCrttype());
    }
    public String getCoriginalhtml() {
        return coriginalhtml;
    }

    public void setCoriginalhtml(String coriginalhtml) {
        this.coriginalhtml = coriginalhtml == null ? null : coriginalhtml.trim();
    }

    public String getCparsehtml() {
        return cparsehtml;
    }

    public void setCparsehtml(String cparsehtml) {
        this.cparsehtml = cparsehtml == null ? null : cparsehtml.trim();
    }
    
	public String getKeyWord() {
		return keyWord;
	}

	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCformname() {
        return cformname;
    }

    public void setCformname(String cformname) {
        this.cformname = cformname == null ? null : cformname.trim();
    }

    public String getCformdisplay() {
        return cformdisplay;
    }

    public void setCformdisplay(String cformdisplay) {
        this.cformdisplay = cformdisplay == null ? null : cformdisplay.trim();
    }

    public String getCformtype() {
        return cformtype;
    }

    public void setCformtype(String cformtype) {
        this.cformtype = cformtype == null ? null : cformtype.trim();
    }

    public Integer getIver() {
        return iver;
    }

    public void setIver(Integer iver) {
        this.iver = iver;
    }

    public String getCcreator() {
        return ccreator;
    }

    public void setCcreator(String ccreator) {
        this.ccreator = ccreator == null ? null : ccreator.trim();
    }

    public Date getDdate() {
        return ddate;
    }

    public void setDdate(Date ddate) {
        this.ddate = ddate;
    }

    public Integer getIcrttype() {
        return icrttype;
    }

    public void setIcrttype(Integer icrttype) {
        this.icrttype = icrttype;
    }

    public Integer getIfieldnum() {
        return ifieldnum;
    }

    public void setIfieldnum(Integer ifieldnum) {
        this.ifieldnum = ifieldnum;
    }

    public Boolean getBflag() {
        return bflag;
    }

    public void setBflag(Boolean bflag) {
        this.bflag = bflag;
    }
}